﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace JYStockAnalyser.WinUI
{
    public partial class FrmBG : Form
    {
        public FrmBG()
        {         
            InitializeComponent();           
        }

        private void label3_MouseEnter(object sender, EventArgs e)
        {
            Label lbl = (Label)sender;
            lbl.ForeColor = Color.White;
            lbl.Font = new Font(lbl.Font, FontStyle.Bold | FontStyle.Italic);
        }

        private void label3_MouseLeave(object sender, EventArgs e)
        {
            Label lbl = (Label)sender;
            lbl.ForeColor = Color.Yellow;
            lbl.Font = new Font(lbl.Font, FontStyle.Regular);
        }

        private void label1_Click(object sender, EventArgs e)
        {
            if (!FrmMain.Instance.IsGuest)
            {
                FrmMain.Instance.AddChidren(new FrmSingleStockAnalyse());
            }
        }

        private void label2_Click(object sender, EventArgs e)
        {

        }

        private void label3_Click(object sender, EventArgs e)
        {
            if (!FrmMain.Instance.IsGuest)
            {
                FrmMain.Instance.AddChidren(new FrmFinancialAnalyse());
            }
        }

        private void label5_Click(object sender, EventArgs e)
        {
            if (!FrmMain.Instance.IsGuest)
            {
                FrmMain.Instance.AddChidren(new FrmMultipleGuideLineAnalysecs());
            }
        }

        private void label6_Click(object sender, EventArgs e)
        {
            if (!FrmMain.Instance.IsGuest)
            {
                FrmMain.Instance.AddChidren(new FrmMultipleStocksAnalyse());
            }
        }

        private void label11_Click(object sender, EventArgs e)
        {
            if (!FrmMain.Instance.IsGuest)
            {
                FrmMain.Instance.AddChidren(new FrmEstimate());
            }
        }

        private void label10_Click(object sender, EventArgs e)
        {
            if (!FrmMain.Instance.IsGuest)
            {
                FrmMain.Instance.AddChidren(new FrmCompoundGrowthRateComputer());
            }
        }

        private void label12_Click(object sender, EventArgs e)
        {
            if (!FrmMain.Instance.IsGuest)
            {
                FrmMain.Instance.AddChidren(new FrmFinancialMultipleGuideLineAnalyse());
            }
        }

        private void label4_Click(object sender, EventArgs e)
        {
            if (!FrmMain.Instance.IsGuest)
            {
                FrmMain.Instance.AddChidren(new FrmFinancialMultipleStocksAnalyse());
            }
        }

        private void label14_Click(object sender, EventArgs e)
        {
            if (!FrmMain.Instance.IsGuest)
            {
                FrmMain.Instance.AddChidren(new FrmBGEssentialData());
            }
        }

        private void label8_Click(object sender, EventArgs e)
        {
            if (!FrmMain.Instance.IsGuest)
            {
                FrmMain.Instance.AddChidren(new FrmProfitGrowthSpeedOrder());
            }
        }

        private void label7_Click(object sender, EventArgs e)
        {
            if (!FrmMain.Instance.IsGuest)
            {
                FrmMain.Instance.AddChidren(new FrmSecurityORder());
            }
        }

        private void FrmBG_Load(object sender, EventArgs e)
        {

        }

        //public void Guest()
        //{
        //    this.lblFunc1.Enabled = false;
        //    this.lblFunc2.Enabled = false;
        //    this.lblFunc3.Enabled = false;
        //    this.lblFunc4.Enabled = false;
        //    this.lblFunc5.Enabled = false;
        //    this.lblFunc6.Enabled = false;
        //    this.lblFunc7.Enabled = false;
        //    this.lblFunc8.Enabled = false;
        //    this.lblFunc9.Enabled = false;
        //    this.lblFunc10.Enabled = false;
        //}
    }
}
